#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void reverse_string(char* string)
{
	int n = Mystrlen(string);
	if (n >= 2)
	{
		char* temp = string[0];
		string[0] = string[n - 1];
		string[n - 1] = '\0';
		reverse_string(string + 1);
		string[n - 1] = temp;
	}
}
int Mystrlen(char* p)
{
	int cn = 0;
	while (p[cn] != '\0')
	{
		cn++;
	}
	return cn ;
}
int main()
{
	char a[] = "abcdef";
	reverse_string(a);
	printf("%s", a);
	return 0;
}